package com.fast.common.db.configuration;


import com.alibaba.cloud.nacos.NacosConfigAutoConfiguration;
import com.alibaba.cloud.nacos.NacosConfigManager;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@ConditionalOnClass(com.alibaba.cloud.nacos.NacosConfigBootstrapConfiguration.class)
@AutoConfigureAfter(NacosConfigAutoConfiguration.class)
@AutoConfigureBefore(DataSourceAutoConfiguration.class)
public class NacosShardingSphereURLProviderAutoConfiguration {

    public NacosShardingSphereURLProviderAutoConfiguration(NacosConfigManager nacosConfigManager) {
        NacosConfigHolder.nacosConfigManager = nacosConfigManager;
    }
}
